package com.bykj.property.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.bykj.property.controller.vo.request.CarsPropPageRequest;
import com.bykj.property.model.CarsProp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

/**
* <p>
    * 车辆管理表(废弃) Mapper 接口
    * </p>
*
* @author liangyiming
* @since 2019-06-20
*/
public interface CarsPropMapper extends BaseMapper<CarsProp> {

    @Select("select  * from cars_prop ")
                @Results({ @Result(property = "pmProprietor",column = "pm_proprietor_id",one = @One(select = "com.bykj.property.mapper.PmProprietorMapper.selectById"))
    })
    Page<CarsProp> queryPage(CarsPropPageRequest pageRequest);

}